package com.example.demo;

import org.springframework.web.bind.annotation.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-10-23
 * Time: 10:44
 */
@RestController
@RequestMapping("/first")
public class TestController {
    @RequestMapping(value = "/hello",method = RequestMethod.POST)
    public String print() {
        return "hello";
    }

    @GetMapping("/hello1")
    public String print1() {
        return "hello1";
    }

    @PostMapping("/hello2")
    public String print2() {
        return "hello2";
    }


}
